package com.example.demo.service;

import com.example.demo.mapper.LogInfoMapper;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class LogService {

    @Autowired
    private LogInfoMapper logInfoMapper;

    public void insertLog(String name, String op) {
        // 记录用户操作
        logInfoMapper.insertLog(name, "用户注册");
    }
}